package com.zzxz.practicaltrainingsys.service;

import com.zzxz.practicaltrainingsys.entity.Grade;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface GradeService {
    List<Grade> getGrade();

    // 新增
    boolean addGrade(Grade grade);

    // 根据ID查找
    Grade getGradeById(Integer grade_id);

    //更新
    public int updateGrade(Grade grade);

    //根据专业编号查找年级名称
    List<Grade> getGradeByMajorId(Integer major_id);
}